//
//  KZPTableViewCell.m
//  布丁动画1
//
//  Created by apple on 15/9/21.
//  Copyright © 2015年 戴维营. All rights reserved.
//

#import "KZPTableViewCell.h"
#import "Masonry.h"

@implementation KZPTableViewCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier
{
    if (self = [super initWithStyle:UITableViewCellStyleSubtitle reuseIdentifier:reuseIdentifier])
    {
        self.backgroundColor = [UIColor clearColor];
        
        [self.imageView mas_makeConstraints:^(MASConstraintMaker *make)
        {
            make.left.equalTo(@(20));
            make.centerY.equalTo(self.contentView);
        }];
        
        self.textLabel.textColor = [UIColor whiteColor];
        
        [self.textLabel mas_makeConstraints:^(MASConstraintMaker *make)
        {
            make.left.equalTo(self.imageView.mas_right).offset(10);
            make.centerY.equalTo(self.contentView);
            
        }];
    }
    
    return self;
}
@end
